<template>
<div>
  名称<input type="text" v-model="form.name">
  用户名<input type="text" v-model="form.username">
  密码<input type="text" v-model="form.password">
  班级<select name="" id="" v-model="form.">
  <option :value="i.id" v-for="i in clalist">{{i.name}}</option>
</select>
</div>
</template>

<script>
export default {
  name: "regstu",
  data(){
    return{
      clalist:[],
      form:{}
    }
  },
  methods:{
    getClalist(){
      this.axios.get('').then(res=>{
        this.clalist=res.data.list
      })
    },
    register(){
      this.axios.post('',this.form).then(res=>{
        if(res.data.code==200){

        }
      })
    }

  },
  mounted() {
    this.getClalist()
  }
}
</script>

<style scoped>

</style>
